import { createApp } from 'vue'
import App from './App.vue'
import router from "./router";
import store from "./store";
import Vant from 'vant';

import * as $ from 'jquery'
import axiosApi from "./config/http.js"



import 'vant/lib/index.css';

import "./assets/css/hack.css"
import "./assets/css/hack_vant.css"

import "amfe-flexible/index.js"
import { Toast,Skeleton } from 'vant';

import utils from './utils/index'

import VConsole from 'vconsole'

if(import.meta.env.VITE_MODULE == 'prod') {
  let vConsole = new VConsole()
}


// const app = createApp();
// app.use(Toast);

// console.log('环境标识',import.meta.env.VITE_MODULE)

// window.globalConfig = {
//   env: import.meta.env.VITE_MODULE
// }
(<any>window).$ = $;
(<any>window).utils = utils

createApp(App)
  .use(router)
  .use(store)
  .use(axiosApi)
  .use(Toast)
  .use(Skeleton)
  .use(Vant)
  .use($)
  .mount('#app')
